import {createSlice,createAsyncThunk} from '@reduxjs/toolkit'
interface stateType{
    urls:string[]
}
const initialState:stateType={
    urls:[]
}
export const urlss=createAsyncThunk('urlss',(url:string[])=>{
    return url
})
const stores=createSlice({
    name:'initState',
    initialState,
    reducers:{},
    extraReducers:{
        [urlss.fulfilled.type]:(state,action)=>{
            state.urls=action.payload
        }
    }
})
export default stores